/**
 * 
 */
package com.cms.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cms.constant.CmsConstant;
import com.cms.pojo.User;
import com.cms.service.UserService;
import com.cms.show.mapper.UserMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

/**
 * @author zhaoyan
 *
 * 2020年1月8日
 */
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper userMapper;

	@Override
	public PageInfo<User> showUser(Integer pageNum) {
		// TODO Auto-generated method stub
		PageHelper.startPage(pageNum,CmsConstant.SIZE );
		
		return new PageInfo<User>(userMapper.list());
	}

	@Override
	public Integer changeStu(String uid, String flag) {
		// TODO Auto-generated method stub
		return userMapper.changeStu(uid,flag);
	}
	
	
}
